#include <iostream>
#include <unistd.h>
#include <sys/types.h>
using namespace std;

int main(int argc, char* argv[], char* envp[])
{
    cout<<"hello C++, My pid is "<<getpid()<<endl;

    for(int i=0;i<argc;i++)
    {
        printf("argv[%d]: %s\n", i, argv[i]);
    }
    cout<<endl;
    for(int i=0;envp[i];i++)
    {
        printf("envp[%d]: %s\n", i, envp[i]);
    }
    return 0;
}